import 'package:fluro/fluro.dart';
import 'package:flutter/material.dart';
// 页面
import 'prize_claw_index/prize_claw_index.dart';
import 'dynamic_plugins/dynamic_plugins.dart';

class TestPageRouteMap {
  final String prizeClawIndex = 'prize_claw_index';
  final String dynamicPlugins = 'dynamic_plugins';

  static void Function(FluroRouter) define = handleDefine;
}

void handleDefine(FluroRouter router) {
  TestPageRouteMap routeMap = TestPageRouteMap();

  router.define(
    routeMap.prizeClawIndex,
    handler: Handler(
      handlerFunc: (BuildContext? context, Map<String, List<String>> params) {
        return PrizeClawIndex();
      },
    ),
  );

  router.define(
    routeMap.dynamicPlugins,
    handler: Handler(
      handlerFunc: (BuildContext? context, Map<String, List<String>> params) {
        return DynamicPlugins();
      },
    ),
  );
}
